// 基础设置  信息标准维护
import request from '@/utils/request'
// 配置公共的header
const headers = {
  'Content-Type': 'application/json;charset=utf-8'
}
const url = '/web/bzdm/'
/**
 * @name findList
 * @description 查询列表
 * @author cjs1992
 * @date 2019-11-13 09:57:06
 */
export function findList(data = {}) {
  return request({
    method: 'post',
    url: `${url}findList`,
    data: data,
    ...headers
  })
}
/**
 * @name add
 * @description 添加
 * @param {
 * "bz": "string",
 * "bzdm": "string",
 * "bzdmmc": "string",
 * "cjr": "string",
 * "cjsj": "string",
 * "dm": "string",
 * "id": 0,
 * "mc": "string",
 * "mcjc": "string",
 * "sfky": "string",
 * "sfxtj": "string",
 * "xgr": "string",
 * "xgsj": "string",
 * "xh": 0,
 * "xxdm": "string"
 * }
 * @author cjs1992
 * @date 2019-11-13 09:59:54
 */
export function add(data = {}) {
  return request({
    method: 'post',
    url: `${url}add`,
    data: data,
    ...headers
  })
}
/**
 * @name edit
 * @description 编辑
 * @author cjs1992
 * @date 2019-11-13 09:59:54
 */
export function edit(data = {}) {
  return request({
    method: 'post',
    url: `${url}edit`,
    data: data,
    ...headers
  })
}
/**
 * @name del
 * @description 删除
 * @author cjs1992
 * @date 2019-11-13 09:59:54
 */
export function del(data = {}) {
  return request({
    method: 'post',
    url: `${url}delete`,
    data: data,
    ...headers
  })
}
/**
 * @name editSfkyOrSfxtj
 * @description 编辑是否可用和系统级
 * @author cjs1992
 * @date 2019-11-14 11:14:00
 */
export function editSfkyOrSfxtj(data = {}) {
  return request({
    method: 'post',
    url: `${url}editSfkyOrSfxtj`,
    data: data,
    ...headers
  })
}
